<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Event/index')}">赛事列表</a></li>
			<li><a href="{:U('Event/add')}">添加赛事</a></li>
		</ul>
        <form class="well form-search" method="post" action="{:U('event/index')}">        	
        	赛事名称:
            <input type="text" name="event_name" style="width: 100px;" value="{$event_name}" placeholder="请输入赛事姓名">
            客户手机号:
            <input type="text" name="customer_mobile" style="width: 100px;" value="{$customer_mobile}" placeholder="客户手机号">
            &nbsp;<!-- 时间：
			<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp; -->
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:U('Event/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>赛事名称</th>
					<th>赛事类型</th>
					<th>开球规则</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>授权码</th>
					<th>客户姓名</th>
					<th>客户电话</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
		
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.event_name}</td>
				    <td>{:getStatusValue('event_type',$vo['event_type'])}</td>
					<td>{$vo.ball_rule}</td>
					<td>{:substr($vo['begin_time'],0,16)}</td>
					<td>{:substr($vo['end_time'],0,16)}</td>
					<td>{$vo.auth_code}</td>
					<td><a target="_blank" href="{:U('Customer/index',array('mobile'=>$vo['customer_mobile']))}">{$vo.customer_name}</a></td>
				    <td>{$vo.customer_mobile}</td>
					<td> <a href="{:U('Event/edit',array('id'=>$vo['id']))}">编辑</a></td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>